package com.weiwu.weiwustore.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * notice
 * 公告表
 */
@Data
@TableName("notice")
public class Notice implements java.io.Serializable {
    @TableId(type = IdType.AUTO)
    /** 公告id */
    private Integer id;
    /** 仓库id */
    @TableField("storeid")
    private Integer storeid;
    /** 公告标题 */
    @TableField("title")
    private String title;
    /** 公告内容 */
    @TableField("content")
    private String content;
    /** 修改版本标识 乐观锁用 */
    /** 数据创建时间 */
    private Date createtime;
    /** 数据最新修改时间 */
    private Date updatetime;
    @Version
    @TableField("ver")
    private Integer ver;
    /** 逻辑删除标识 默认0  */
    @TableLogic
    @TableField("del")
    private Integer del;

    public Notice(){}
    public Notice(Integer id,String title,String content,Integer storeid){
        this.id=id;
        this.title=title;
        this.content=content;
        this.storeid=storeid;
    }
    public Notice(String title,String content,Integer storeid){
        this.title=title;
        this.content=content;
        this.storeid=storeid;
    }
}